<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>字符串、整数、布尔、数组</h1>
    <script>
        var str="javascript的数据类型";
        console.log(str);

        var i=100;
        console.log(i);

        var isMan=true;
        console.log(isMan);

        var hobby = ["乒乓球","唱歌","it","爬山"]
        console.log(hobby);
        console.log(hobby[0]);
        console.log(hobby[hobby.length-1]);
    </script>
</body>
</html>